package com.lzx.dormsys.bean;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lzx.dormsys.entity.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * dms对象 dms_device
 * 
 * @author ruoyi
 * @date 2021-09-09
 */
public class DeviceBean extends BaseEntity
{
    private static final long serialVersionUID = 1L;



    /** 设备编号 */
    private Long deviceId;



    /** 设备名称 */
    private String deviceName;



    /** 设备ip地址 */
    private String deviceIp;



    /** 设备序列号 */
    private String deviceMac;



    /** 心跳地址 */
    private String deviceHeartbeat;



    /** 最后在线时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date onlineDate;



    /** 设备注册人数 */
    private Long faceCount;



    /** 设备注册照片数量 */
    private Long faceImage;



    /** 设备版本号 */
    private String version;

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeviceIp(String deviceIp) 
    {
        this.deviceIp = deviceIp;
    }

    public String getDeviceIp() 
    {
        return deviceIp;
    }
    public void setDeviceMac(String deviceMac) 
    {
        this.deviceMac = deviceMac;
    }

    public String getDeviceMac() 
    {
        return deviceMac;
    }
    public void setDeviceHeartbeat(String deviceHeartbeat) 
    {
        this.deviceHeartbeat = deviceHeartbeat;
    }

    public String getDeviceHeartbeat() 
    {
        return deviceHeartbeat;
    }
    public void setOnlineDate(Date onlineDate) 
    {
        this.onlineDate = onlineDate;
    }

    public Date getOnlineDate() 
    {
        return onlineDate;
    }
    public void setFaceCount(Long faceCount) 
    {
        this.faceCount = faceCount;
    }

    public Long getFaceCount() 
    {
        return faceCount;
    }
    public void setFaceImage(Long faceImage) 
    {
        this.faceImage = faceImage;
    }

    public Long getFaceImage() 
    {
        return faceImage;
    }
    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("deviceName", getDeviceName())
            .append("deviceIp", getDeviceIp())
            .append("deviceMac", getDeviceMac())
            .append("deviceHeartbeat", getDeviceHeartbeat())
            .append("onlineDate", getOnlineDate())
            .append("faceCount", getFaceCount())
            .append("faceImage", getFaceImage())
            .append("version", getVersion())
            .toString();
    }
}
